let app = getApp()
Page({
  data:{
    is_show_time: 1,
    order_info:''
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    var key = wx.getStorageSync('key')
    var uid = wx.getStorageSync('u')
    var id = options.refund_id
    if (key) {
      wx.request({
        url: app.configData.shop.api_url + '/index.php?ctl=Buyer_Service_Return&met=index&act=detail&typ=json',
        method: 'GET',
        data: { k: key, u: uid, id: id },
        header: {
          'content-type': 'application/json'
        },
        success: function (res) {

          that.setData({
            order_info: res.data.data,
            is_show_time: 0
          })
        }
      })
    } else {
      that.setData({
        is_show_time: 0
      })
    }
  },
})
